package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.common.dto.CategoryDto;
import com.itheima.reggie.common.dto.DishListDto;
import com.itheima.reggie.common.dto.DishUpdateDto;
import com.itheima.reggie.entity.Dish;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

public interface DishService extends IService<Dish> {
    Integer selectByCategoryId(Long id);

    R<String> dish(CategoryDto categoryDto);

    R<Page<DishListDto>> findDishPage(Long page, Long pageSize, String name);

    R<DishUpdateDto> findDishById(Long id);

    R<String> updateDish(DishUpdateDto dishUpdateDto);

    R<List<DishUpdateDto>> findDishByCategoryId(Long categoryId, Integer status);

    R<String> deleteById(List<Long> ids);

    R<String> stopSell(List<Long> ids);

    R<String> startSell(List<Long> ids);
}